from django.conf.urls import *

from subfactory import views

urlpatterns = patterns('',
    url(r'^$', views.index, name='index'),
    # ex: /subfactory/document/5/
    url(r'^document/(?P<document_id>\d+)/$', views.document, name='document'),
    url(r'^version/(?P<version_id>\d+)/$', views.version, name='version'),
    url(r'^document_add/$', views.document_add, name='document_add'),
    url(r'^document_change/(?P<document_id>\d+)/$', views.document_change, name='document_change'),
    url(r'^document_save/(?P<document_id>\d+)/$', views.document_save, name='document_save'),
    url(r'^difference/(?P<first_version_id>\d+)/(?P<second_version_id>\d+)/$', views.difference, name='difference'),
    url(r'^upload_file/$', views.upload_file, name='upload_file'),
    url(r'^dowload_translation/(?P<version_id>\d+)/$', views.download_translation, name='download_translation'),
)

